package com.sh4.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.sh4.entity.Article;

import net.sf.json.JSONObject;

public interface ArticleService {

	void save(Article article);
	
	List<Map<String , Object>> list(int pageSize , int pageNo , JSONObject params);
	
	int countAtricle(int pageSize , int pageNo , JSONObject params);
	
	void deleteArticle(Article a);
	
	Article getArticleById(String id , String type);
	
	Map<String , Object> preArticle(Date createDate , String type);
	
	Map<String , Object> suffixArticle(Date createDate , String type);
}
